<include file="./Application/Admin/View/Public/htmlheader.html"/>
<include file="./Application/Admin/View/Public/header.html"/>
<include file="./Application/Admin/View/Public/left.html"/>

<ol class="breadcrumb">
    <li><a href="/Admin">首页</a></li>
    <li class="active">标签列表</li>
</ol>
<div class="row">
    <div class="col-lg-12">
        <div class="table-responsive">
            <table class="table table-hover table-bordered">
                <tr class="success">
                    <th>标签名称</th>
                    <th>操作</th>
                </tr>
                <volist name="list" id="vo" empty="暂时没有数据">
                    <tr>
                        <td>{$vo.name}</td>
                        <td>
                            <if condition="$permission['tagEdit'] eq TRUE">
                                <a href="__ROOT__/Admin/Question/tagEdit?id={$vo['id']}" class="btn btn-info btn-xs">编辑</a>
                            </if>
                            <if condition="$permission['tagDel'] eq TRUE">
                            <a href="__ROOT__/Admin/Question/tagDel?id={$vo['id']}"
                               onclick="return confirm('确定删除?');" class="btn btn-danger btn-xs">删除</a>
                            </if>
                        </td>
                    </tr>
                </volist>
            </table>
            <div class="row">
                <div class="col-lg-3">
                    <if condition="$permission['tagAdd'] eq TRUE">
                    <button class="btn btn-primary" data-toggle="modal" data-target="#addRoom">添加标签</button>
                    </if>
                </div>
                <div class="col-lg-9 text-center">
                    <nav>{$page}</nav>
                </div>
            </div>

        </div>
    </div>
</div>
<!--   添加标签 弹出层   -->
<div class="modal fade" id="addRoom" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
                        class="sr-only">Close</span></button>
                <h4 class="modal-title" id="myModalLabel">添加标签</h4>
            </div>
            <form action="__ROOT__/Admin/Question/tagAdd" method="post">
                <div class="modal-body">
                    
                    <div class="row">
                        <div class="col-lg-3 text-right"><p>标签名称：</p></div>
                        <div class="col-lg-9"><input type="text" name="name" value="" class="form-control"/></div>
                    </div>
                    <br/>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="submit" class="btn btn-primary">添加</button>
                </div>
            </form>
        </div>
    </div>
</div>
<include file="./Application/Admin/View/Public/footer.html"/>